<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Page of Administrator</title>
        <!-- begin css -->
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/admin'); ?>/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/admin'); ?>/css/bootstrap-reset.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('public/admin'); ?>/css/style.css">
        <!-- end css -->
    </head>
    <body>
        <form action="upload" method="post" enctype="multipart/form-data">
            <input type="file" name="img"/>
            <input type="submit" value="upload"/>
        </form>


        <?php
        if (isset($files)) {
            $path = base_url('public/images/sanpham');
            foreach ($files as $pic) {
                ?>
                <img src="<?php echo $path . '/' . $pic; ?>" ></img>
                <?php
            }
        }
        ?>

        <!-- begin js -->
        <script src="<?php echo base_url('public/admin'); ?>/js/jquery.js" ></script>
        <script src="<?php echo base_url('public/admin'); ?>/js/jquery-ui.min.js"></script>
        <script src="<?php echo base_url('public/admin'); ?>/js/boostrap.min.js"></script>
        <script src="<?php echo base_url('public/admin'); ?>/js/jquery.nicescroll.min.js"></script>
        <script src="<?php echo base_url('public/admin'); ?>/js/js.js"></script>

        <!-- end js -->
    </body>
</html>